<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <!--
        linkTag() method (available since v1.0.1)
linkTag(string $relation=NULL, string $type=NULL, string $href=NULL, string $media=NULL, array $options=array ( ))
$relation 	string 	rel attribute of the link tag. If null, the attribute will not be generated.
$type 	string 	type attribute of the link tag. If null, the attribute will not be generated.
$href 	string 	href attribute of the link tag. If null, the attribute will not be generated.
$media 	string 	media attribute of the link tag. If null, the attribute will not be generated.
$options 	array 	other options in name-value pairs
{return} 	string 	the generated link tag
Source Code: framework/web/helpers/CHtml.php#193 (show)
public static function linkTag($relation=null,$type=null,$href=null,$media=null,$options=array())
{
    if($relation!==null)
        $options['rel']=$relation;
    if($type!==null)
        $options['type']=$type;
    if($href!==null)
        $options['href']=$href;
    if($media!==null)
        $options['media']=$media;
    return self::tag('link',$options);
}

Generates a link tag that can be inserted in the head section of HTML page.
Do not confuse this method with link(). The latter generates a hyperlink.
        -->
        <!-- put in head tag -->

        <?php $icon_path = CHtml::image(Yii::app()->theme->baseUrl . "/images/favicon.ico", ""); ?>
        <link rel="shortcut icon" href="<?php echo Yii::app()->theme->baseUrl; ?>/images/icon.ico" type="image/x-icon" />
        <?php echo CHtml::linkTag("shortcut icon", "image/x-icon", $icon_path, "", ""); ?>
        <!--<link rel="shortcut icon" href="images/favicon.ico" />-->
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />

        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />

        <!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/inner.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/color.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/prettyPhoto.css" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <!--
        metaTag() method (available since v1.0.1)
        public static string metaTag(string $content, string $name=NULL, string $httpEquiv=NULL, array $options=array ( ))
        $content 	string 	content attribute of the meta tag
        $name 	string 	name attribute of the meta tag. If null, the attribute will not be generated
        $httpEquiv 	string 	http-equiv attribute of the meta tag. If null, the attribute will not be generated
        $options 	array 	other options in name-value pairs (e.g. 'scheme', 'lang')
        {return} 	string 	the generated meta tag
        -->
        <?php echo CHtml::metaTag("text/javascript", "", "Content-Script-Type", ""); ?>

        <meta http-equiv="Content-Script-Type" content="text/javascript" />

        <?php echo CHtml::metaTag("text/html", "", "Content-Type", array('charset=>UTF-8')); ?>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <?php echo CHtml::metaTag("index/follow", "robots", "", ""); ?>
        <meta name="robots" content="index, follow" />
        <?php echo CHtml::metaTag("", "keywords", "", ""); ?>
        <meta name="keywords" content="" />
        <?php echo CHtml::metaTag("", "title", "", ""); ?>
        <meta name="title" content="" />
        <?php echo CHtml::metaTag("", "description", "", ""); ?>
        <meta name="description" content="" />
        <title>Search Engine Optimization</title>
        <!-- ////////////////////////////////// -->
        <!-- //      Start Stylesheets       // -->
        <!-- ////////////////////////////////// -->
        <!--
        <link href="styles/style.css" rel="stylesheet" type="text/css" />
        <link href="styles/color.css" rel="stylesheet" type="text/css" />
        -->
        <!-- ////////////////////////////////// -->
        <!-- //      Javascript Files        // -->
        <!-- ////////////////////////////////// -->
        <!--remember that you can actually point to the js files directly if
         your script file is outside of protected/subfolders
         $jqueryslidemenupath = Yii::app()->assetManager->publish(Yii::app()->basePath.'/scripts/jqueryslidemenu/');
        -->
        <!--//Register jQuery, JS and CSS files-->
        <?php Yii::app()->clientScript->registerCoreScript('jquery');?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/cufon-yui.js'); ?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/Tuffy_500-Tuffy_700-Tuffy_italic_500.font.js'); ?>
        <!--<script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="js/cufon-yui.js"></script>
        <script type="text/javascript" src="js/Tuffy_500-Tuffy_700-Tuffy_italic_500.font.js"></script>
        -->
        <!--
                    <script type="text/javascript">
	 Cufon.replace('h1') ('h2') ('h3') ('h4') ('h5') ('h6') ('#intro-content');
                    </script>
        -->
        <?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/Cufon_replace.js'); ?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery.cycle.all.min.js'); ?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jqueryslidemenu.js'); ?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/fade.js'); ?>
        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jquery.prettyPhoto.js'); ?>

<!--<script type="text/javascript" src="js/jquery.cycle.all.min.js"></script>
<script type="text/javascript" src="js/jqueryslidemenu.js"></script>
        -->
        <?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/imageslide.js'); ?>

        <?php
//            Yii::app()->clientScript->registerScript('testscript', "
//                $('a[rel^='prettyPhoto']').prettyPhoto({animationSpeed:'slow',theme:'facebook',slideshow:2000});
//            ", CClientScript::POS_READY);
        ?>

        <script type="text/javascript">
            var $ = jQuery.noConflict();
            $(document).ready(function(){

                // If javascript disabled */
                $("body").removeClass("nojs").addClass("js");

                // Homepage slider */
                $('#slider').cycle({
                    timeout: 5000,  // milliseconds between slide transitions (0 to disable auto advance)
                    fx:      'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
                    prev: '#prevslide',  // selector for element to use as event trigger for previous slide
                    next: '#nextslide',  // selector for element to use as event trigger for next slide
                    pager:   '#pager',  // selector for element to use as pager container
                    pause:   0,	  // true to enable "pause on hover"
                    cleartypeNoBg: true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
                    pauseOnPagerHover: 0 // true to pause when hovering over pager link
                });

                //Twitter Jquery
//                $("#twitter").getTwitter({
//                    userName: "templatesquare",
//                    numTweets: 3,
//                    loaderText: "Loading tweets...",
//                    showHeading: true,
//                    headingText: "Latest  From Twitter",
//                    slideIn: true,
//                    slideDuration: 750
//                });

                //portfolio display
                $("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'facebook',slideshow:2000});
                
            });
        </script>

        <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->theme->baseUrl . '/js/jqueryslidemenu.js'); ?>
        <!--
        <script type="text/javascript" src="js/jqueryslidemenu.js"></script>
        -->
        <!--[if lte IE 7]>
        <style type="text/css">
        html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/
        </style>
        <![endif]-->

        <?php
        $sql = "SELECT * FROM tbl_topic";
        $command = Yii::app()->db->createCommand($sql);
        $rawdatatopic = $command->query();

        foreach ($rawdatatopic as $row) {
            $topics[] = array('label' => $row['name'], 'url' => array('/site/blog/', 'id' => $row['id']));
        }

        $sql = "SELECT * FROM tbl_service";
        $command = Yii::app()->db->createCommand($sql);
        $rawdataservice = $command->query();

        foreach ($rawdataservice as $row){
            $services[] = array('label' => $row['name'], 'url' => array('/site/service/', 'id' => $row['id']));
        }
        ?>
    </head>

    <body class="nojs">
        <div id="frame">
            <div id="top_container">
                <div class="pad_container">
                    <div id="top">
                        <div id="top-left">
                            <!--public static string image(string $src, string $alt='', array $htmlOptions=array ( ))
                            replace for <img src="images/logo.png" alt="" />
                            public static string link(string $text, mixed $url='#', array $htmlOptions=array ( ))
                            replace for -->
                            <div id="logo">
                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/logo_seo.jpg", ""); ?>
                                <?php echo CHtml::link($image_tag, array('/site/index')) ?>

                            </div><!-- end #logo -->
                        </div><!-- end #top-left -->
                        <div id="top-right">
                            <div id="top-navigation" class="jqueryslidemenu">
                                <?php
                                $this->widget('zii.widgets.CMenu', array(
                                    'items' => array(
                                        array('label' => 'Trang Chủ', 'url' => array('/index.php')),
                                        array('label' => 'Dịch Vụ', 'url' => array('/site/service'), 'items' => $services),
                                        array('label' => 'SEO Blog', 'url' => array('/site/blog'), 'items' => $topics),
//                                        array('label' => 'Dịch Vụ', 'url' => array('site/service'),
//                                            'items' => array(
//                                                array('label' => 'Tên Miền', 'url' => array('/site/index')),
//                                                array('label' => 'Thuê Đặt Server', 'url' => array('/site/index')),
//                                                array('label' => 'Hosting', 'url' => array('/site/contact')),
//                                                array('label' => 'Thiết Kế Web', 'url' => array('/site/index'))
//                                            ),
//                                        ),
//                                        array('label' => 'Seo Blog', 'url' => array('/site/blog'),
//                                            'items' => array(
//                                                array('label' => 'SEO NEWS', 'url' => array('#'),
//                                                    'items' => array(
//                                                        array('label' => 'Search Engine', 'url' => array('/site/index')),
//                                                        array('label' => 'Google Search Engine', 'url' => array('/site/index')),
//                                                    ),
//                                                ),
//                                                array('label' => 'Search Engine Optimization', 'url' => array('#'),
//                                                    'items' => array(
//                                                        array('label' => 'Optimizations', 'url' => array('/site/index')),
//                                                        array('label' => 'Link Building', 'url' => array('/site/index')),
//                                                        array('label' => 'Seo Tips', 'url' => array('/site/index')),
//                                                        array('label' => 'Travel SEM', 'url' => array('/site/index')),
//                                                    ),
//                                                ),
//                                                array('label' => 'E-Marketing', 'url' => array('/site/index')),
//                                                array('label' => 'Web System', 'url' => array('#'),
//                                                    'items' => array(
//                                                        array('label' => 'Web Tẹchnologies', 'url' => array('/site/index')),
//                                                        array('label' => 'Jumla SEO', 'url' => array('/site/index')),
//                                                        array('label' => 'WordPress SEO', 'url' => array('/site/index')),
//                                                        array('label' => 'Drupal SEO', 'url' => array('/site/index')),
//                                                    ),
//                                                ),
//                                                array('label' => 'SEO Documents', 'url' => array('/site/index')),
//                                            ),
//                                        ),
                                        array('label' => 'Giới Thiệu', 'url' => array('/site/page', 'view' => 'about')),
                                        array('label' => 'Liên Hệ', 'url' => array('site/contact')),
                                        array('label' => 'Quản Trị', 'url' => array('admin/default/index'), 'visible' => !Yii::app()->user->isGuest),
                                        array('label' => 'Đăng Nhập', 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest),
                                        array('label' => 'Logout (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)),
                                )); ?>

                                <!--
		 $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),
				array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'Contact', 'url'=>array('/site/contact')),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
				array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
			),
		));
                                -->
                                <div class="clear"></div><!-- clear float -->
                            </div>
                            <!-- end #top-navigation -->
                        </div><!-- end #top-right -->
                    </div><!-- end #top -->



                    <?php //if (isset($this->breadcrumbs)): ?>
                    <?php
//                                    $this->widget('zii.widgets.CBreadcrumbs', array(
//                                        'links' => $this->breadcrumbs,
//                                        'homeLink' => CHtml::link('Trang Chủ', Yii::app()->homeUrl),
//                                    ));
                         ?>
                    <?php //endif; ?>

                                    <!--                                    <div id="intro-content">
                                                                                			Welcome to Seo Viet Pro. The best place to seo your name!
                                                                        </div>-->

                    <?php //$image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-deli.png", ""); ?>
                    <?php //echo CHtml::link($image_tag, array('#')) ?>



                                    <div id="content">
                        <?php echo $content; ?>
                                </div><!--end content-->
                            </div><!-- end .pad_container -->
                        </div><!-- end #top_container -->


                        <div id="bottom_container">
                            <div class="pad_container">

                                <div id="footer">
                                    <div id="foot-col1">
                                        <!--
                                        closeTag() method
                                        public static string closeTag(string $tag)
                                        $tag 	string 	the tag name
                            {return} 	string 	the generated HTML element tag
                                        -->
                                        <ul>
                                            <li class="widget-container" >
                                                <h2 class="widget-title">SEOVIET Website</h2>
                                                <div class="text-widget">SEOVIET là 1 website chuyên về thủ thuật SEO ( Search Engine Optimization ) cho những websites Việt Nam. Seoviet là 1 sân chơi cho những người yêu thích công nghệ quảng bá website, maketing-online, tối ưu hóa công cụ tìm kiếm nhằm tăng số lượng truy cập cho websites. Đến Seoviet chúng ta sẽ cùng nhau trao đổi, chia sẻ và thảo luận để ngày 1 hoàn thiện hơn trong khả năng SEO. Ngoài SEO, website còn cung cấp những giải pháp xây dựng và tối ưu hóa website, blog dựa trên các mã nguồn mở như Joomla, Wordpress và gần nhất là Drupal.</div>
                                            </li>
                                        </ul>
                                    </div><!-- end #foot-col1 -->
                                    <div id="foot-col2">
                                        <ul>
                                            <li class="widget-container">
                                                <h2 class="widget-title">Liên hệ với chúng tôi</h2>
                                                <div class="text-widget">
                                                    <p>Địa chỉ: Số 2, Ngõ 1, Trần Phú, Hà Đông<br />
                                                                							Thành phố: Hà Nội <br />
                                                        Quốc gia: Việt Nam<br/>
                                                                							Điện thoại: 04 - 6675 - 3319<br />
                                                        Email: info@ncvietnam.com<br/>
                                                        <a href="mailto:info@ncvietnam.com">info@ncvietnam.com</a><br />

                                                    </p>
                                                    <ul class="sn">
                                                        <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-deli.png", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
<!-- <a href="#"><img src="images/i-deli.png" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-flickr.png", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                               <!-- <a href="#"><img src="images/i-flickr.png" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-fb.png", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                                <!--<a href="#"><img src="images/i-fb.png" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-google.png", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                               <!-- <a href="#"><img src="images/i-google.png" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-rss.png", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                                <!--<a href="#"><img src="images/i-rss.png" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/i-twitter.png", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                               <!-- <a href="#"><img src="images/i-twitter.png" alt=""  /></a>-->
                                            </li>

                                        </ul>
                                    </div>
                                </li>
                            </ul>
                        </div><!-- end #foot-col2 -->
                        <div id="foot-col3">
                            <ul>
                                <li class="widget-container">
                                    <h2 class="widget-title">My Photoshot</h2>
                                    <div class="text-widget">
                                        <ul class="my_photo">
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/content/my-photo1.jpg", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                                <!--  <a href="#"><img src="images/content/my-photo1.jpg" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/content/my-photo2.jpg", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                                <!--<a href="#"><img src="images/content/my-photo2.jpg" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/content/my-photo3.jpg", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                               <!-- <a href="#"><img src="images/content/my-photo3.jpg" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/content/my-photo4.jpg", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                                <!--<a href="#"><img src="images/content/my-photo4.jpg" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/content/my-photo5.jpg", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                               <!-- <a href="#"><img src="images/content/my-photo5.jpg" alt=""  /></a>-->
                                            </li>
                                            <li>
                                                <?php $image_tag = CHtml::image(Yii::app()->theme->baseUrl . "/images/content/my-photo6.jpg", ""); ?>
                                                <?php echo CHtml::link($image_tag, array('#')) ?>
                                                <!--<a href="#"><img src="images/content/my-photo6.jpg" alt=""  /></a>-->
                                            </li>
                                        </ul>
                                    </div>
                                </li>

                            </ul>
                        </div><!-- end #foot-col3 -->
                        <div class="clear"></div>
                    </div><!-- end #footer -->
                </div><!-- end .pad_container -->
                <div id="footer-copyright"><div id="copyright">Copyright  &copy;2011 Hanu Deforce. All rights reserved  - Designed by <a href="../../../templatesquare.com/default.htm" onclick="window.open(this.href,'_blank');return false;">TemplateSquare</a>.</div></div><!-- end #footer-copyright -->
            </div><!-- end #bottom_container -->
        </div><!-- end #frame -->

    </body>
</html>






